package com.di.base.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.lang.Double;

@FeignClient(name = "account-service")
public interface AccountFeignClient {

    @GetMapping("/account/decrease")
    void decrease(@RequestParam("userId") String userId, @RequestParam("amount") Double amount);
}
